﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

public partial class MasterPage : System.Web.UI.MasterPage
{
    protected void Page_Load(object sender, EventArgs e)
    {
        if (Profile.Name.Length > 0)
        {
            UserProfileHyperLink.Text = "Welcome, " + Profile.Name;
        }
        else
        {
            UserProfileHyperLink.Text = "Set Profile";
        }

        if (Profile.ColorPreference.Length > 0)
        {
            Panel1.BackColor = System.Drawing.Color.FromName(Profile.ColorPreference);
        }
    }
}
